import request from "@/request";

// 登陆请求
export function login(account, password) {
  const data = {
    account,
    password
  }
  return request({
    url: "/login",
    method:'post',
    data
  })
}

// 注册验证请求
export function checkSignUp(account, email, password, verificationCode) {
  const data = {
    account,
    email,
    password,
    verificationCode
  }
  return request({
    url: "/login/checkSignUp",
    method: 'post',
    data
  })
}

export function signUp(account, email, password, verificationCode) {
  const data = {
    account,
    email,
    password,
    verificationCode
  }
  return request({
    url: "/login/signUp",
    method: 'post',
    data
  })
}

export function logout() {
  return request({
    url: "/login/logout",
    method: 'post',
  })
}